<template>
    <div class="com-cnt">
        <video style="width:100%;" id="myvideo" :poster="videoImg" :src="videoSrc" :muted="muteStatus" controls="controls" preload="preload" webkit-playsinline x5-playsinline playsinline></video>
        <div style="width:100%;height:100%;">
            <img :src="divImg" alt="" style="display:inline-block;width:100%;">
        </div>
        
    </div>
</template>

<script>
import axios from 'axios'
import Qs from 'qs'
import { maskCallback, maskTips } from '@/assets/js/dom'
export default {
    name: "tvzsPage",
    data() {
        return {
            _dom: "",
            videoSrc: 'https://out-4f5fadab5fc011e8b60a00163e1c955c.oss-cn-shanghai.aliyuncs.com/video/3b7f7361-164de96de7b-0005-8413-40d-8e3e0.mp4',
            videoImg: '../../assets/imgs/xkh.png',
            divImg: require('@/assets/imgs/tvimg.png'),
            muteStatus: '',
            isMute: true,
            isPlay: false,
        }
    },
    mounted() {
        
    },
    methods: {
       // 视频方法
        playClick() {
            this._dom = document.getElementById('myvideo');
            this.isPlay = !this.isPlay;
            this._dom.play();
        },
        showOtherVideo() {
            let _this = this;
            setTimeout(function () {
                _this.flag = _this._dom.paused;
                if (!_this.flag) {
                    _this.showOtherVideo();
                    console.log(_this.flag);
                }

            }, 1000)
        }
        
    }
}
</script>

<style lang="stylus" scoped>
.com-cnt {
    width: 100%;
    height: auto;
    padding-bottom: 45px;
    overflow: hidden;

    .title {
        width: 100%;
        height: 50px;
        line-height: 50px;
        box-sizing: border-box;
        padding: 0 10px;
        font-weight: bold;
        font-size: 20px;
        color: #333;
        text-align: center;
    }

    .border-bottom {
        &:before {
            bottom: 1px;
        }
    }

    .pic-cnt {
        width: 100%;
        height: auto;
        overflow: hidden;

        .item-pic {
            width: 100%;
            height: auto;
            display: block;
            float: left;
        }
    }

    .btn-fix {
        width: 100%;
        height: 45px;
        line-height: 45px;
        text-align: center;
        font-size: 16px;
        color: #fff;
        background-color: #aad114;
        position: fixed;
        left: 0;
        bottom: 45px;
    }
}
</style>